//
//  MapViewController.h
//  Memo Pad
//
//  Created by MacBook Pro on 10/19/12.
//
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import "MapZoomLevel.h"
#import "clsLocationData.h"

@protocol MapClickDelegate <NSObject>
@optional
-(void)CloseMapView;
@end

typedef void(^CloseCallback)();
typedef void(^SelectCallback)();

@interface MapViewController : UIViewController<MKMapViewDelegate> {
    IBOutlet MKMapView *omapview;
    //IBOutlet UIButton *BtnShowCompanyLoc;
    
	NSMutableArray *locationList;
    CLLocationManager *olocationmanager;
    
	//Boolean isAddLocation;
	Boolean isLoadingData;
	Boolean isSetingData;
}

@property (nonatomic, weak) id<MapClickDelegate> delegate;
@property (nonatomic, copy) CloseCallback closecallback;
@property (nonatomic, copy) SelectCallback selectcallback;
@property (nonatomic, assign) double latitude;
@property (nonatomic, assign) double longitude;
@property (nonatomic, assign) BOOL IsEdit;
@property (nonatomic, assign) BOOL IsEmpty;
@property (weak, nonatomic) IBOutlet UIButton *btnSelect;
@property (weak, nonatomic) IBOutlet UIButton *btnClose;

-(void)refershLocation;

@end
